using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmtpTest
{
	class Program
	{
		static void Main(string[] args)
		{
			String test = "Test3";
			Console.WriteLine(test);
			Console.WriteLine(test);
			Console.WriteLine(test + "test2");
			var mailMessage = new System.Net.Mail.MailMessage();
			mailMessage.To.Add(System.Configuration.ConfigurationManager.AppSettings["ToEmailAddress"]);
			mailMessage.Subject = System.Configuration.ConfigurationManager.AppSettings["Subject"];
			mailMessage.Body = System.Configuration.ConfigurationManager.AppSettings["Body"];
			using (var smtpServer = new System.Net.Mail.SmtpClient())
			{
				smtpServer.Send(mailMessage);
			}
		}
	}
}
